package com.szjk.gateway.fallback;

import com.szjk.core.utils.ResultUtils;
import com.szjk.core.vo.ResultEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenxinglin
 * @version 1.0
 * @description
 * @date 2021-11-26 09:38
 * @company szjk
 */
@RestController
public class FallbackController {

    @GetMapping("/fallbackWeb")
    public ResultEntity fallbackWeb(){
        return ResultUtils.serviceStopError("web服务暂时不可用");
    }

    @GetMapping("/fallbackApp")
    public ResultEntity fallbackApp(){
        return ResultUtils.serviceStopError("app服务暂时不可用");
    }
}
